public class Student {
    private String name;
    private int studentId;
    private String banji;
    private String gender;
    private int age;
    private String xingge;

    public Student(String n, int id, String b, String g, int a, String x) {
        name = n;
        studentId = id;
        banji = b;
        gender = g;
        age = a;
        xingge = x;}

        public String getName () {
            return name;
        }
        public int getStudentId () {
            return studentId;
        }
        public String getBanji () {
            return banji;
        }
        public String getGender (){
            return gender;
        }
        public int getAge(){
            return age;
        }
        public String getXingge(){
            return xingge;}
    }

class Main{
        public static void main(String[]args){
        Student student1 = new Student("小张", 1007, "一班", "男", 17, "活泼");
        System.out.println("我的名字是" + student1.getName() + ",学号是" + student1.getStudentId() + ",班级是" + student1.getBanji() + ",性别是" + student1.getGender()
                + ",年龄是" + student1.getAge() + ",我比较" + student1.getXingge());
            Student student2 = new Student("小王", 1008, "七班", "男", 16, "调皮");
            System.out.println("我的名字是" + student2.getName() + ",学号是" + student2.getStudentId() + ",班级是" + student2.getBanji() + ",性别是" + student2.getGender()
                    + ",年龄是" + student2.getAge() + ",我比较" + student2.getXingge());
            Student student3 = new Student("小陈", 1111, "三班", "女", 18, "开朗");
            System.out.println("我的名字是" + student3.getName() + ",学号是" + student3.getStudentId() + ",班级是" + student3.getBanji() + ",性别是" + student3.getGender()
                    + ",年龄是" + student3.getAge() + ",我比较" + student3.getXingge());
        }
}
